/*
 * @LastEditors: zhouyaxue
 * @Date: 2022-09-06 12:14:13
 * @LastEditTime: 2022-12-29 16:40:43
 */

import NotFound from '../views/notFound.vue';
import Home from '../views/home/index.vue';
import Index from '../views/index/index.vue';
import Production from '../views/production/index.vue';
import Solution from '../views/solution/index.vue';
import Activity from '../views/activity/index.vue';
import Technology from '../views/technology/index.vue';
import Expore from '../views/expore/index.vue';


const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    redirect: '/',
    children: [
      {
        path: '/',
        name: 'Index',
        component: Index,
        meta: {
          title: '首页',
          keywords: '首页',
          description:
            '首页',
        },
      },
      {
        path: '/production',
        name: 'Production',
        component: Production,
        meta: {
          title: '产品',
          keywords: '产品',
          description:
            '产品',
        },
      },
      {
        path: '/solution',
        name: 'Solution',
        component: Solution,
        meta: {
          title: '解决方案',
          keywords: '解决方案',
          description:
            '解决方案',
        },
      },
      {
        path: '/activity',
        name: 'Activity',
        component: Activity,
        meta: {
          title: '雷奥活动',
          keywords: '雷奥活动',
          description:
            '雷奥活动',
        },
      },
      {
        path: '/technology',
        name: 'Technology',
        component: Technology,
        meta: {
          title: '技术支持',
          keywords: '技术支持',
          description:
            '技术支持',
        },
      },
      {
        path: '/expore',
        name: 'Expore',
        component: Expore,
        meta: {
          title: '探索雷奥',
          keywords: '探索雷奥',
          description:
            '探索雷奥',
        },
      }
    ],
  },
  {
    path: '/404',
    name: '404',
    component: NotFound,
  },

  {
    path: '/:pathMatch(.*)*', // vue3.0模式
    redirect: {
      name: '404',
    },
  },
];

export default routes;
